package com.demo5.pojo;
import java.util.Date;

import lombok.Data;
import lombok.NonNull;
@Data
public class Emp {
	public Emp() {
	}
	@NonNull
	private Integer empno;
	@NonNull
	private String ename;
	@NonNull
	private Date hiredate;
	@NonNull
	private double sal;
	@NonNull
	private int dept_no;
	public Emp(Integer empno, String ename, Date hiredate, double sal) {
		super();
		this.empno = empno;
		this.ename = ename;
		this.hiredate = hiredate;
		this.sal = sal;
	}
	
	public Emp(String ename, Date hiredate, double sal, int dept_no) {
		super();
		this.ename = ename;
		this.hiredate = hiredate;
		this.sal = sal;
		this.dept_no = dept_no;
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "Emp [empno=" + empno + ", ename=" + ename + ", sal=" + sal + ", hiredate=" + hiredate +  ", dept_no=" + dept_no + "]";
	}
	
}
